package pers.zb.docker.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.zb.docker.example.dao.UserDao;
import pers.zb.docker.example.entity.User;

import java.util.List;

/**
 * 用户服务
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 获取所有用户列表
     * @return
     */
    public List<User> getAllUsers(){
        return userDao.searchAllUsers();
    }
}
